package com.cdcas;

import java.util.*;

public class TestBookAsKey {
    public static void main(String[] args) {
//        Map<Book,String> map = new HashMap<>();
//        map.put(new Book("java"),"wwwww");
//        System.out.println(map.get(new Book("java")));

        //栈的操作

//        Stack<String> stack = new Stack<>();
//        System.out.println(stack.empty());
//        stack.push("11");
//        stack.push("22");
//        System.out.println(stack.empty());
//        while (!stack.empty()) {
//            System.out.println(stack.pop());
//        }

        Queue<String> queue = new LinkedList<>();
        queue.add("11");
        queue.add("22");
        queue.add("33");
        queue.offer("44");
        queue.offer("55");
        while (!queue.isEmpty()) {
            System.out.println(queue.poll());
        }

    }


}
